﻿<%@ page title="" language="C#" masterpagefile="~/BankMasterPage.master" autoeventwireup="true" inherits="PL_ChangePswrd, App_Web_nuiswhgr" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .auto-style1
        {
            width: 41%;
            height: 236px;
        }

        .auto-style5
        {
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/Javascript" language="javascript">


        function CheckTextBoxes() {
            alert("Please fill the text boxes in the page");
        }
        function confirmsubmit() {
            //confirm("Are you sure that you want to change password?");
            if (confirm("Are you sure that you want to change password?") == true) {
                location.href = '~/PL/Login.aspx';
            }
            else
                location.href = '~/PL/ChangePswrd.aspx';
        }
        //function confirm() {

        //    if (confirm("Are you sure that you want to change password?") == true) {
        //        location.href = '~/PL/Login.aspx';
        //    }
        //    else
        //        location.href = '~/PL/ChangePswrd.aspx';
        //}
        //function confirm() {
        //    if (confirm("Are you sure that you want to change password?") == true) {
        //        location.href = '~/PL/Login.aspx';
        //    }
        //    else {
        //        location.href = '~/PL/ChangePswrd.aspx';
        //    }
        //}
    </script>
    <table class="auto-style1">
        <tr>
            <td colspan="2">
                <asp:Label ID="ChangePasswordLbl" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="X-Large" Text="Change Password" ForeColor="#0000CC"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="scriptlbl" runat="server" Font-Bold="True" ForeColor="#CC0066"></asp:Label>
                <asp:Label ID="changepasswrdlbl" runat="server" Font-Bold="True" ForeColor="#CC0066"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="auto-style5">
                <asp:Label ID="OldPasswordLbl" runat="server" Text="Old Password" Font-Bold="True" ForeColor="#CC0066"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="OldPasswordTxtBx" runat="server" OnTextChanged="OldPasswordTxtBx_TextChanged" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left" class="auto-style5">
                <asp:Label ID="NewPasswordLbl" runat="server" Text="New Password" Font-Bold="True" ForeColor="#CC0066"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="NewPasswordTxtBx" runat="server" OnTextChanged="NewPasswordTxtBx_TextChanged"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left" class="auto-style5">
                <asp:Label ID="ConfirmPasswordLbl" runat="server" Text="Conform Password" Font-Bold="True" ForeColor="#CC0066"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="ConformPasswordTxtBx" runat="server" OnTextChanged="NewPasswordTxtBx_TextChanged" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left" class="auto-style5">
                <asp:Button ID="ChangePasswordBtn" runat="server" OnClick="ChangePasswordBtn_Click" Text="Change Password" OnClientClick="return confirmsubmit()" Width="160px" />
            </td>
            <td align="left">
                <asp:Button ID="CancelBtn" runat="server" Text="Cancel" OnClick="CancelBtn_Click" />
            </td>
        </tr>
        <tr>
            <td align="center" class="auto-style5" colspan="2">
                <script type="text/javascript">

                    function HideLabel() {
                        document.getElementById('<%= DsplyLbl.ClientID %>').style.display = "none";

                    }
                    setTimeout("HideLabel();", 3000);
                </script>
                <asp:Label ID="DsplyLbl" runat="server" Font-Bold="True" Font-Size="Larger" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="auto-style5">&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </table>

</asp:Content>

